package com.zbkj.service.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.zbkj.common.model.activity.SfullDiscountActivity;
import com.zbkj.common.model.activity.SfullDiscountProduct;
import com.zbkj.common.request.PageParamRequest;
import com.zbkj.common.request.merchant.MerchantSfullDiscountProductSearchRequest;

import java.util.List;

/**
 * MerchantSfullDiscountProductService 接口实现
 * +----------------------------------------------------------------------
 * | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
 * +----------------------------------------------------------------------
 * | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
 * +----------------------------------------------------------------------
 * | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
 * +----------------------------------------------------------------------
 * | Author: CRMEB Team <admin@crmeb.com>
 * +----------------------------------------------------------------------
 */
public interface MerchantSfullDiscountProductService extends IService<SfullDiscountProduct> {

    /**
     * 折扣满减商品列表
     * @param request 请求参数
     * @return List
     */
    PageInfo<SfullDiscountProduct> findPage(MerchantSfullDiscountProductSearchRequest request, PageParamRequest pageParamRequest);

    List<SfullDiscountProduct> findAllList(MerchantSfullDiscountProductSearchRequest request);

    SfullDiscountProduct findOne(MerchantSfullDiscountProductSearchRequest request);

    /**
     * 新增折扣满减商品
     * @param productList 请求参数
     * @return 新增结果
     */
    Boolean addBatch(SfullDiscountActivity activity, List<SfullDiscountProduct> productList);


    /**
     * 删除折扣满减商品
     * @param ids 商户满减折扣ID
     * @return 删除结果
     */
    Boolean delete(List<Integer> ids);
}
